package com.youhome.service.service;


import com.youhome.common.exception.CustomException;
import com.youhome.service.model.BCounselor;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by chen365 on 2018/09/17.
 */
public interface CounselorService {
    int deleteByPrimaryKey(Long counselorId);

    int insert(BCounselor record);

    int insertSelective(BCounselor record);

    BCounselor selectByPrimaryKey(Long counselorId);

//    BCounselor selectByToken(String token);
//
//    BCounselor selectByToken(HttpServletRequest request);

    BCounselor selectByUserId(Long userId);

    int updateByPrimaryKeySelective(BCounselor record);

    int updateByPrimaryKey(BCounselor record);

    BCounselor selectByPhone(String phone) throws CustomException;
}
